﻿using BCDto.Common.Area;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCDto.TMS.Agent.AgentAreaRecord
{
    /// <summary>
    /// 代理商所属省区域树形模型
    /// </summary>
    public class AgentAreaTreeDto
    {
        /// <summary>
        /// 省/州编码Id
        /// </summary>
        public string ProvinceCode { get; set; }
        /// <summary>
        /// 省/州名称
        /// </summary>
        public string ProvinceName { get; set; }
        /// <summary>
        /// 代理商市区域列表
        /// </summary>
        public List<AgentCityTreeDto> Children { get; set; }
    }
    /// <summary>
    /// 代理商市区域树形模型
    /// </summary>
    public class AgentCityTreeDto
    {
        /// <summary>
        /// 市编码
        /// </summary>
        public string CityCode { get; set; }
        /// <summary>
        /// 市名称
        /// </summary>
        public string CityName { get; set; }
        /// <summary>
        /// 代理商区县区域列表
        /// </summary>
        public List<AgentCountyTreeDto> Children { get; set; }
    }
    /// <summary>
    /// 代理商区县树形模型
    /// </summary>
    public class AgentCountyTreeDto
    {
        /// <summary>
        /// 区县编码
        /// </summary>
        public string CountyCode { get; set; }
        /// <summary>
        /// 区县名称
        /// </summary>
        public string CountyName { get; set; }
        /// <summary>
        /// 已存在下级代理
        /// </summary>
        public bool Exists { get; set; }
    }
}
